<%--
  Created by IntelliJ IDEA.
  User: lxm
  Date: 2018/3/14
  Time: 下午7:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="layui-tab-item">
    <%--API接口调用开始--%>
    <fieldset class="layui-elem-field">
        <legend>批量文本处理</legend>
        <div class="layui-field-box">
            <div class="site-demo-button" style="margin-bottom: 0;">
                <button class="layui-btn  layui-btn-normal  site-demo-active" data-type="tabAdd">
                    <i class="layui-icon">&#xe608;</i> 添加一个请求
                </button>
            </div>
            <div id="div_api_tab" class="layui-tab layui-tab-brief" lay-filter="api-tab"
                 lay-allowClose="true">
                <ul class="layui-tab-title">
                    <li class="layui-this">样例1</li>
                </ul>
                <div class="layui-tab-content" style="/*height: 100px;*/">
                    <div class="layui-tab-item layui-show">
                        <fieldset class="layui-elem-field layui-field-title">
                            <legend>参数填充区域</legend>
                            <div class="layui-field-box">
                                <div class="layui-row">
                                    <div class="layui-col-md12">
                                        <form class="layui-form demo_first" action="">
                                            <div class="layui-form-item">
                                                <div class="layui-input-inline" style="width: 100px;">
                                                    <select name="method">
                                                        <option value="" disabled>请求方法</option>
                                                        <option value="post" selected="">POST</option>
                                                        <option value="get" disabled>GET</option>
                                                        <option value="put" disabled>PUT</option>
                                                        <option value="delete" disabled>DELETE</option>
                                                    </select>
                                                </div>
                                                <div class="layui-input-block" style="width: 91%">
                                                    <input type="text" name="SEG_URL" lay-verify="title"
                                                           autocomplete="off"
                                                           placeholder="/api/analysis/segment/demo"
                                                           class="layui-input" disabled>
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <div class="layui-input-inline" style="width: 100px;">
                                                    <select name="segmentTypeIntroduce">
                                                        <option value="" disabled>分词方法</option>
                                                        <option value="SegType" selected="">SegType</option>
                                                    </select>
                                                </div>
                                                <div class="layui-input-block" style="width: 91%">
                                                    <select name="segmentType">
                                                        <option value="" disabled>目前系统内置的分词方法</option>
                                                        <option value="HANLP_NLP" selected="">HANLP_NLP
                                                        </option>
                                                        <option value="ANSJ_NORMAL">ANSJ_NORMAL</option>
                                                        <option value="ANSJ_NLP">ANSJ_NLP</option>
                                                        <option value="ANSJ_DIC">ANSJ_DIC</option>
                                                        <option value="ANSJ_INDEX">ANSJ_INDEX</option>
                                                        <option value="ANSJ_BASIC">ANSJ_BASIC</option>
                                                        <option value="HANLP_STANDARK">HANLP_STANDARK
                                                        </option>
                                                        <option value="HANLP_INDEX">HANLP_INDEX</option>
                                                        <option value="HANLP_N_SHORTEST">HANLP_SHORTEST
                                                        </option>
                                                        <option value="HANLP_CRF">HANLP_CRF</option>
                                                        <option value="HANLP_FASTDIC">HANLP_FASTDIC</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <div class="layui-input-inline" style="width: 100px;">
                                                    <select name="StopwordFilterIntroduce">
                                                        <option value="" disabled>停用词过滤</option>
                                                        <option value="SW_FILTER" selected="">SW_FILTER
                                                        </option>
                                                    </select>
                                                </div>
                                                <div class="layui-input-block" style="width: 91%">
                                                    <select name="ENABLE_STOPWORD_FILTER">
                                                        <option value="" disabled>是否开启</option>
                                                        <option value="TRUE" selected="">TRUE</option>
                                                        <option value="FALSE">FALSE</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <div class="layui-input-inline" style="width: 100px;">
                                                    <select name="PunctuationFilterIntroduce">
                                                        <option value="" disabled>标点过滤</option>
                                                        <option value="PT_FILTER" selected="">PT_FILTER
                                                        </option>
                                                    </select>
                                                </div>
                                                <div class="layui-input-block" style="width: 91%">
                                                    <select name="ENABLE_PUNCTUATION_FILTER">
                                                        <option value="" disabled>是否开启</option>
                                                        <option value="TRUE" selected="">TRUE</option>
                                                        <option value="FALSE">FALSE</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <div class="layui-input-inline" style="width: 100px;">
                                                    <select name="CustomFilterIntroduce">
                                                        <option value="" disabled>自定义过滤</option>
                                                        <option value="CT_FILTER" selected="">CT_FILTER
                                                        </option>
                                                    </select>
                                                </div>
                                                <div class="layui-input-block" style="width: 91%">
                                                    <input type="text" name="CUSTOM_WORDS"
                                                           lay-verify="title"
                                                           autocomplete="off"
                                                           placeholder="在这里输入您自定义需要过滤的词汇，以英文小写逗号','分割"
                                                           class="layui-input"/>
                                                </div>
                                            </div>
                                            <div class="layui-form-item">
                                                <div class="layui-input-inline" style="width: 100px;">
                                                    <select name="FormatIntroduce">
                                                        <option value="" disabled>格式选择</option>
                                                        <option value="FORMAT" selected="">FORMAT</option>
                                                    </select>
                                                </div>
                                                <div class="layui-input-block" style="width: 91%">
                                                    <select name="FORMAT">
                                                        <option value="" disabled>目前已经支持的返回格式</option>
                                                        <option value="JSON" selected="">JSON</option>
                                                        <option value="XML">XML</option>
                                                        <option value="TXT">TXT</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="layui-form-item div_seg_api_text">
                                                <div class="layui-input-inline" style="width: 100px;">
                                                    <select name="TextIntroduce">
                                                        <option value="" disabled>分词文本</option>
                                                        <option value="CT_FILTER" selected="">TEXT
                                                        </option>
                                                    </select>
                                                </div>
                                                <div class="layui-input-inline" style="width: 76%">
                                                    <input type="text" name="SEG_TEXT" lay-verify="title"
                                                           autocomplete="off"
                                                           placeholder="在这里输入您需要分词的文本，若要多段文本，请点击下面的添加按钮"
                                                           class="layui-input"/>
                                                </div>
                                                <div class="layui-input-inline" style="width: 120px">
                                                    <div class="layui-btn-group">
                                                        <button type='button' id="btn_add_onlyone"
                                                                class="layui-btn layui-btn"
                                                                onclick='addAPITextInput("demo_first")'>
                                                            <i class="layui-icon">&#xe654;</i>
                                                        </button>
                                                        <button type='button' id="btn_delete_onlyone"
                                                                class="layui-btn layui-btn-warm layui-btn"
                                                                onclick='deleteAPITextInput("demo_first",$(this))'>
                                                            <i class="layui-icon">&#xe640;</i>
                                                        </button>
                                                    </div>
                                                </div>
                                            </div>
                                        </form>
                                        <fieldset class="layui-elem-field layui-field-title">
                                            <legend>执行操作</legend>
                                            <div class="layui-field-box">
                                                <div class="layui-btn-container">
                                                    <button class="layui-btn layui-btn-primary"
                                                            onclick='previewAPICode("demo_first")'><i
                                                            class="layui-icon">&#xe62a;</i> 预览请求
                                                    </button>
                                                    <button class="layui-btn layui-btn-normal"
                                                            onclick='sendRequest("demo_first")'><i
                                                            class="layui-icon">&#xe609;</i> 发送请求
                                                    </button>
                                                    <button type="reset" class="layui-btn layui-btn-warm"><i
                                                            class="layui-icon">&#xe640;</i> 重置请求
                                                    </button>
                                                </div>
                                            </div>
                                        </fieldset>
                                        <fieldset class="layui-elem-field layui-field-title demo_first">
                                            <legend>请求预览与分词结果</legend>
                                            <div class="layui-field-box">
                                                <div class="layui-row">
                                                    <div class="layui-col-md6" style="min-height: 600px">
                                                        <fieldset class="layui-elem-field">
                                                            <legend>请求-REQUEST</legend>
                                                            <div class="layui-field-box">
                                                                            <pre>
                                                                                <code class="json hljs code-request"
                                                                                      style="    line-height: 30px; margin-left: 30px;word-wrap: break-word; max-width: 480px; height: 600px;overflow-y: scroll;">
                                                                                </code>
                                                                            </pre>
                                                            </div>
                                                        </fieldset>
                                                    </div>
                                                    <div class="layui-col-md6" style="min-height: 600px;">
                                                        <fieldset class="layui-elem-field">
                                                            <legend>响应-RESPONSE</legend>
                                                            <div class="layui-field-box">
                                                                            <pre>
                                                                                <code class="json hlsj code-response"
                                                                                      style=" line-height: 30px; margin-left: 30px;word-wrap: break-word; max-width: 480px; height: 600px;overflow-y: scroll;">

                                                                                </code>
                                                                            </pre>
                                                            </div>
                                                        </fieldset>
                                                    </div>
                                                </div>
                                            </div>
                                        </fieldset>
                                    </div>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </div>
            </div>
        </div>
    </fieldset>
    <%--API接口调用结束--%>
</div>